home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1996 / MacHack 1996.toast / Hacks / Hacks ’92 / NetWarmer / source / Globals.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-22  |  971 b   |  36 lines  |  [TEXT/KAHL]

  1. /* Globals.h */
  2. /* Created 3/13/4 1:08 PM by AppMaker */
  3.  
  4. typedef struct {
  5.       /*Standard fields:*/
  6.         TEHandle        text;
  7.         ControlHandle    vScroll;      
  8.         ControlHandle    hScroll;      
  9.         short            fileNum;             
  10.         short            volNum;            
  11.         Boolean            dirty;
  12.         StringHandle    filename;
  13.         enum {noWindow, WMainWindow}    windowKind;
  14.         
  15.       /*Application-specific fields:*/
  16.       /* for MainWindow: */
  17.         Boolean            PasswordChecked;
  18.         ControlHandle    PasswordHandle;
  19.         TEHandle    Field2Handle;
  20.         Boolean            AllowRemoteWarmChecked;
  21.         ControlHandle    AllowRemoteWarmHandle;
  22.         ControlHandle    Slider10Handle;
  23.             } WinInfoRec, *WinInfoPtr;
  24.  
  25. extern Boolean            quittingTime;                             
  26. extern EventRecord        curEvent;                          
  27. extern WindowPtr        curWindow;
  28. extern WinInfoPtr        cur;
  29. extern Boolean            inBackground;
  30.  
  31. /*----------*/
  32. void InitGlobals (void);
  33. void SetInfo     (WindowPtr        window);
  34. void SetNewInfo  (WindowPtr        window);
  35. void DiscardInfo (WindowPtr        window);
  36.